package com.mgkj.demo.controller;
import com.mgkj.demo.entity.eten.Item;
import com.mgkj.demo.service.ArticleNumberService;
import com.mgkj.result.Result;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(tags = "品号")
public class ArticleNumberController {
    @Autowired
    private ArticleNumberService articleNumberService;
    @PostMapping("insterArticleNumber")
    public Result insterArticleNumber(@RequestBody Item item){
        return articleNumberService.insterArticleNumber(item);
    }

}
